-
Notifications
You must be signed in to change notification settings - Fork 10
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Remove drafts from Ready column #394
Conversation
This will remove pull requests that are drafts out of the 'Ready' column
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
CR ☕
@@ -123,6 +123,7 @@ export class Pull extends PullData { | |||
isReady(): boolean { | |||
return ( | |||
this.hasMetDeployRequirements() && | |||
!this.isDraft() && |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe this should be in the hasMetDeployRequirements
function?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We consider a draft as a type of dev-block so I think it would be best grouped with the other conditions that check for blocks
!this.isDraft() &&
!this.getDevBlock() &&
!this.getDeployBlock() &&
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It may be better to group those into their own hasBlock() function
CR 👍 but I wouldn't oppose another PR to clean up the functions some way or other. |
@kthaler I resolved the external block if you'd like to test this one out |
QA 🎬 |
This will filter out draft pull requests out from the Ready column
Closes #393